Get card (v1)

Retrieve details of a specific card. The response contains confidential card details such as the full Primary Account Number (PAN) and CVV2 number.

Overview

Retrieve details of a specific card. The response contains confidential card details such as the full Primary Account Number (PAN) and CVV2 number.

GET (/internal/v1/cards/{token})

Parameters

  • token (path) (required): Internal unique identifier for the card. See CardToken model.
  • X-Client-Public-Key (header) (required): Base64-encoded ECDH client public key using secp256r1 elliptic curve. See XClientPublicKey model.

Responses

200 OK

Sensitive card details. The PAN and CVV2 are encrypted in the encryptedPayload field. After decryption, the JSON structure will conform to DecryptedCardDetails.

400 Bad Request

Bad Request Response

500 Internal Server Error

Internal server error response

Architecture

7 properties

Sensitive card details. The PAN and CVV2 are encrypted in the `encryptedPayload` field. After decryption, the JSON structure will conform to `DecryptedCardDetails`.

token string
required

Internal unique identifier for the card.

expirationDate string <MM/YY>
required

Expiry date of the card

encryptedPayload object
required

Encrypted payload using AES-256-GCM. The encryption algorithm and KDF are fixed by convention: 1. Symmetric encryption: AES-256-GCM 2. Key derivation: HKDF-SHA256 from ECDH shared secret

7 properties

Bad Request Response

code string
Allowed values: urn:plmr:cards:connector:CARD_NOT_FOUND urn:plmr:cards:connector:CARD_ALREADY_TERMINATED urn:plmr:cards:connector:INVALID_CLIENT_PUBLIC_KEY urn:plmr:cards:connector:INVALID_CARD_STATE urn:plmr:cards:connector:IN_APP_PROVISION_NOT_ALLOWED urn:plmr:cards:connector:INVALID_CERTIFICATE_CHAIN
message string
requestId string
fieldErrors array [object]
7 properties

Internal server error response

code string
Allowed values: urn:plmr:cards:connector:CARD_NOT_FOUND urn:plmr:cards:connector:CARD_ALREADY_TERMINATED urn:plmr:cards:connector:INVALID_CLIENT_PUBLIC_KEY urn:plmr:cards:connector:INVALID_CARD_STATE urn:plmr:cards:connector:IN_APP_PROVISION_NOT_ALLOWED urn:plmr:cards:connector:INVALID_CERTIFICATE_CHAIN
message string
requestId string
fieldErrors array [object]